﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using IVinPlugins;

namespace VinCalculator
{
    public partial class VinCalculator : Form, IVinPlugins.IPluginHost
    {
        PluginManager m_pluginManager;

        public VinCalculator()
        {
            InitializeComponent();
            m_pluginManager = new PluginManager(this,mnuTools);
        }

         
        private void VinCalculator_Load(object sender, EventArgs e)
        {
            m_pluginManager.InitializePlugins(); 
        }
 

        public void Register(IVinPlugins.IVinPlugin plugin)
        {
            m_pluginManager.RegisterPlugin(plugin);
        }

        private void mnuExit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
